import { Library, LibrarySize } from "@/api/service/library/types";
import { ENUM_DATA_SCOPE } from "@/enum/system.enum";
import { TableConfig } from "@/types/http/IAxios";
interface LibraryQuery {
  name: string;
  type: string;
  share: string;
  orderByColumn: string;
  word: string;
  sizeId: string;
  mode: "1" | "0";
}
export const queryObj: LibraryQuery = {
  name: "",
  type: "",
  share: "0",
  orderByColumn: "res_id",
  word: "",
  sizeId: "",
  mode: "0"
};
export const libraryKeys = ref();

export const libraryTable = ref<TableConfig<Library>>({
  data: [],
  loading: false,
  rowKey: "",
  keys: []
});
export const libraryQuery = useQuery({
  scope: ENUM_DATA_SCOPE.THIS_SHOP_AND_SHARED,
  ...queryObj
});
export const librarySizeData = ref<LibrarySize[]>([]);
